package com.zigong.app.ui.widget;

import android.content.Context;
import android.graphics.Rect;
import android.util.AttributeSet;

import com.ruihang.generalibrary.ui.widget.CustomFontTextView;

/**
 * Created by Administrator on 2017/9/12 0012.
 */

public class MarqueeText extends CustomFontTextView {
    private boolean isForce=true;

    public boolean isForce() {
        return isForce;
    }

    public void setForce(boolean force) {
        isForce = force;
    }

    public MarqueeText(Context context) {
        super(context);
    }

    public MarqueeText(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public MarqueeText(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    @Override
    public boolean isFocused() {
        return isForce;
    }

    @Override
    protected void onFocusChanged(boolean focused, int direction,
                                  Rect previouslyFocusedRect) {
    }
}
